package com.moss.cloud.base.api.model.from;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
public class UserRoleFrom implements Serializable {
    /** 用户id */
    @NotNull(message = "用户ID不能为空")
    private Long userId;
    /** 角色id */
    @NotNull(message = "角色id不能为空")
    private List<Long> roleIds;
}
